package com.slz3.business.module.wmsManagement.wmsPurchaseOrderLine.service;

import com.slz3.business.module.wmsManagement.wmsPurchaseOrderLine.domain.WmsPurchaseOrderLine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Page;
import org.springframework.util.MultiValueMap;

import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Stream;

/**
 * 非事务型 service
 */
public interface WmsPurchaseOrderLineService {

    WmsPurchaseOrderLine save(WmsPurchaseOrderLine wmsPurchaseOrderLine);

    List<WmsPurchaseOrderLine> saveList(List<WmsPurchaseOrderLine>  wmsPurchaseOrderLines);

    Page<WmsPurchaseOrderLine> page(MultiValueMap<String,String> queryParams);

    WmsPurchaseOrderLine modify(WmsPurchaseOrderLine wmsPurchaseOrderLine);

    Optional<WmsPurchaseOrderLine> single(UUID uuid);

    List<WmsPurchaseOrderLine> findAllByUuids(Iterable<UUID> uuids);

    List<WmsPurchaseOrderLine> delete(List<WmsPurchaseOrderLine> wmsPurchaseOrderLineList);

}
